package com.example.demo;

import java.awt.*;

public class ChampionDaji extends Champion{
    public ChampionDaji(GameFrame gameFrame) {
        super(gameFrame);
        abilityOne = Toolkit.getDefaultToolkit().getImage("img/Daji/abilityOne.png");
        abilityTwo = Toolkit.getDefaultToolkit().getImage("img/Daji/abilityTwo.png");
        abilityThree = Toolkit.getDefaultToolkit().getImage("img/Daji/abilityThree.png");
    }

    public void abilityOne() {
        if (coolDownOne){

        }
    }

    public void abilityTwo() {

    }

    public void abilityThree() {

    }

    public void abilityEffect() {

    }
    class AbilityOneCD extends Thread{
        public void run(){
            //将技能一设置为冷却状态
            coolDownOne = false;
            //线程休眠
            try{
                //one 代表技能一冷却时间
                int one = coolDownTimeOne;
                while (one > 0){
                    Thread.sleep(1000);
                }
            }catch (Exception e){
                e.printStackTrace();
            }
            //将技能一设置为攻击状态
            coolDownOne = true;
            //线程终止
            this.stop();
        }
    }
}
